<?php
/**
 * +----------------------------------------------------------------------
 * | Copyright © Sogu Technologies Co. Ltd 2018-2050 All rights reserved.
 * +----------------------------------------------------------------------
 * | File name: r360.php
 * +----------------------------------------------------------------------
 * | Author: sam
 * +----------------------------------------------------------------------
 * | Description: 融360渠道api文件
 * +----------------------------------------------------------------------
 * | Others:
 * +----------------------------------------------------------------------
 * | History:
 * +----------------------------------------------------------------------
 * | 1.Date: 2019-02-21 Author: sam Modification: 创建
 * +----------------------------------------------------------------------
 */



Route::any('360fix','\App\Http\Controllers\TestController@r360_check');

//融360调用机构
//,'middleware'=>'\App\Http\Middleware\Rong360\CheckData'
Route::group(['prefix' =>'client'],function(){
    /**
     * 用户信息模块
     */
    Route::get('test','Rong360Controller@index');
    Route::group(['prefix'=>'user'],function(){
        Route::post('check','UserController@check')->name('user.check');
        Route::post('base-info','UserController@baseInfo')->name('user.base-info');
        Route::post('supplement-info','UserController@supplementInfo')->name('user.supplement-info');
    });

    //还款
    Route::group(['prefix'=>'repay'],function(){
        Route::post('do','RepayController@doRepay')->name('repay.do');
    });
    //银行卡
    Route::group(['prefix'=>'card'],function(){
        Route::post('list','BankCardController@bankCardList')->name('card.list');
        Route::post('apply','BankCardController@applyBindCard')->name('card.apply');
        Route::post('bind','BankCardController@bindCard')->name('card.bind');

    });
    //借款
    Route::group(['prefix'=>'loan'],function(){
        Route::post('status','LoanRequestController@loanStatus')->name('loan.status');
        Route::post('confirm','LoanRequestController@loanConfirm')->name('loan.confirm');
    });
    Route::get('test','Rong360Controller@index');
});

//机构调用融360
Route::group(['prefix'=>'server'],function(){
    //todo
});

